﻿using Benefactor.Models.DbModels;
using Bigway.Common;
using Bigway.Common.Services.Repositories;

namespace Benefactor.Services.Repositories;

public class ProductTypeRepository(IServiceProvider sp)
    : BaseCodeNameEntityRepository<ProductType>(sp), IProductTypeRepository
{
    public override List<ProductType> InitialEntities =>
    [
        new ProductType
        {
            SystemId = SystemIds.GiftPiker,
            Code = "free",
            Name = "免费券"
        },

        new ProductType
        {
            SystemId = SystemIds.GiftPiker,
            Code = "discount",
            Name = "折扣券"
        },

        new ProductType
        {
            SystemId = SystemIds.GiftPiker,
            Code = "free_above",
            Name = "满减券"
        },

        new ProductType
        {
            SystemId = SystemIds.GiftPiker,
            Code = "buy_one_get_two",
            Name = "买一送一券"
        }
    ];
}